package com.iris.live.services.data.models;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by xiO on 2016/11/30.
 */
@Entity
@Table(name = "businesstickets", schema = "live", catalog = "")
public class BusinessticketsModel {
    private Integer btId;
    private String btTrueId;
    private String btName;
    private String btLogo;
    private Timestamp btUpdateDt;
    private String btTaxNo;
    private String btAddrAndTel;
    private String btBankAccount;
    private String btMailAddr;
    private String btRemarks;
    private String btStarStatus;
    private String btSign;
    private String firstreviewPerson;
    private String endreviewPerson;
    private String shoptypeid;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "bt_id")
    public Integer getBtId() {
        return btId;
    }

    public void setBtId(Integer btId) {
        this.btId = btId;
    }

    @Basic
    @Column(name = "bt_trueId")
    public String getBtTrueId() {
        return btTrueId;
    }

    public void setBtTrueId(String btTrueId) {
        this.btTrueId = btTrueId;
    }

    @Basic
    @Column(name = "bt_name")
    public String getBtName() {
        return btName;
    }

    public void setBtName(String btName) {
        this.btName = btName;
    }

    @Basic
    @Column(name = "bt_logo")
    public String getBtLogo() {
        return btLogo;
    }

    public void setBtLogo(String btLogo) {
        this.btLogo = btLogo;
    }

    @Basic
    @Column(name = "bt_updateDt")
    public Timestamp getBtUpdateDt() {
        return btUpdateDt;
    }

    public void setBtUpdateDt(Timestamp btUpdateDt) {
        this.btUpdateDt = btUpdateDt;
    }

    @Basic
    @Column(name = "bt_taxNo")
    public String getBtTaxNo() {
        return btTaxNo;
    }

    public void setBtTaxNo(String btTaxNo) {
        this.btTaxNo = btTaxNo;
    }

    @Basic
    @Column(name = "Bt_addrAndTel")
    public String getBtAddrAndTel() {
        return btAddrAndTel;
    }

    public void setBtAddrAndTel(String btAddrAndTel) {
        this.btAddrAndTel = btAddrAndTel;
    }

    @Basic
    @Column(name = "Bt_bankAccount")
    public String getBtBankAccount() {
        return btBankAccount;
    }

    public void setBtBankAccount(String btBankAccount) {
        this.btBankAccount = btBankAccount;
    }

    @Basic
    @Column(name = "Bt_mailAddr")
    public String getBtMailAddr() {
        return btMailAddr;
    }

    public void setBtMailAddr(String btMailAddr) {
        this.btMailAddr = btMailAddr;
    }

    @Basic
    @Column(name = "Bt_remarks")
    public String getBtRemarks() {
        return btRemarks;
    }

    public void setBtRemarks(String btRemarks) {
        this.btRemarks = btRemarks;
    }

    @Basic
    @Column(name = "Bt_starStatus")
    public String getBtStarStatus() {
        return btStarStatus;
    }

    public void setBtStarStatus(String btStarStatus) {
        this.btStarStatus = btStarStatus;
    }

    @Basic
    @Column(name = "Bt_sign")
    public String getBtSign() {
        return btSign;
    }

    public void setBtSign(String btSign) {
        this.btSign = btSign;
    }

    @Basic
    @Column(name = "firstreview_person")
    public String getFirstreviewPerson() {
        return firstreviewPerson;
    }

    public void setFirstreviewPerson(String firstreviewPerson) {
        this.firstreviewPerson = firstreviewPerson;
    }

    @Basic
    @Column(name = "endreview_person")
    public String getEndreviewPerson() {
        return endreviewPerson;
    }

    public void setEndreviewPerson(String endreviewPerson) {
        this.endreviewPerson = endreviewPerson;
    }

    @Basic
    @Column(name = "shoptypeid")
    public String getShoptypeid() {
        return shoptypeid;
    }

    public void setShoptypeid(String shoptypeid) {
        this.shoptypeid = shoptypeid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BusinessticketsModel that = (BusinessticketsModel) o;

        if (btId != null ? !btId.equals(that.btId) : that.btId != null) return false;
        if (btTrueId != null ? !btTrueId.equals(that.btTrueId) : that.btTrueId != null) return false;
        if (btName != null ? !btName.equals(that.btName) : that.btName != null) return false;
        if (btLogo != null ? !btLogo.equals(that.btLogo) : that.btLogo != null) return false;
        if (btUpdateDt != null ? !btUpdateDt.equals(that.btUpdateDt) : that.btUpdateDt != null) return false;
        if (btTaxNo != null ? !btTaxNo.equals(that.btTaxNo) : that.btTaxNo != null) return false;
        if (btAddrAndTel != null ? !btAddrAndTel.equals(that.btAddrAndTel) : that.btAddrAndTel != null) return false;
        if (btBankAccount != null ? !btBankAccount.equals(that.btBankAccount) : that.btBankAccount != null)
            return false;
        if (btMailAddr != null ? !btMailAddr.equals(that.btMailAddr) : that.btMailAddr != null) return false;
        if (btRemarks != null ? !btRemarks.equals(that.btRemarks) : that.btRemarks != null) return false;
        if (btStarStatus != null ? !btStarStatus.equals(that.btStarStatus) : that.btStarStatus != null) return false;
        if (btSign != null ? !btSign.equals(that.btSign) : that.btSign != null) return false;
        if (firstreviewPerson != null ? !firstreviewPerson.equals(that.firstreviewPerson) : that.firstreviewPerson != null)
            return false;
        if (endreviewPerson != null ? !endreviewPerson.equals(that.endreviewPerson) : that.endreviewPerson != null)
            return false;
        if (shoptypeid != null ? !shoptypeid.equals(that.shoptypeid) : that.shoptypeid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = btId != null ? btId.hashCode() : 0;
        result = 31 * result + (btTrueId != null ? btTrueId.hashCode() : 0);
        result = 31 * result + (btName != null ? btName.hashCode() : 0);
        result = 31 * result + (btLogo != null ? btLogo.hashCode() : 0);
        result = 31 * result + (btUpdateDt != null ? btUpdateDt.hashCode() : 0);
        result = 31 * result + (btTaxNo != null ? btTaxNo.hashCode() : 0);
        result = 31 * result + (btAddrAndTel != null ? btAddrAndTel.hashCode() : 0);
        result = 31 * result + (btBankAccount != null ? btBankAccount.hashCode() : 0);
        result = 31 * result + (btMailAddr != null ? btMailAddr.hashCode() : 0);
        result = 31 * result + (btRemarks != null ? btRemarks.hashCode() : 0);
        result = 31 * result + (btStarStatus != null ? btStarStatus.hashCode() : 0);
        result = 31 * result + (btSign != null ? btSign.hashCode() : 0);
        result = 31 * result + (firstreviewPerson != null ? firstreviewPerson.hashCode() : 0);
        result = 31 * result + (endreviewPerson != null ? endreviewPerson.hashCode() : 0);
        result = 31 * result + (shoptypeid != null ? shoptypeid.hashCode() : 0);
        return result;
    }
}
